package com.example.teachingSystem.pojo.form.role;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(description = "新增角色表")
public class AddRoleForm {
    @Schema(description = "角色id")
    private Long id;

    @Schema(description = "名称")
    @NotNull(message = "名称不能为空")
    private String name;

    @Schema(description = "编码")
    @NotNull(message = "编码不能为空")
    private String code;

    @Schema(description="显示序列")
    @NotNull(message = "显示序列不能为空")
    private Integer sort;

}
